#!groovy

@Library('jenkinslibs@master') _

//定义构建的参数
def buildMapParams=[:]
//构建pom所在目录
buildMapParams.pomDir='.'
//mvn构建命令，若不传会使用预设默认mvn命令
buildMapParams.mvnCommand='mvn clean deploy javadoc:jar -U -Prelease'

pipeline {
    agent any
   // 对应Jenkins 全局工具配置
    tools {
        maven 'mvn3'
        jdk 'jdk'
    }

    stages {
       stage('构建部署私服') {
	        steps {
			    commonBuildPipeline(buildMapParams)
			}
    	}
    }
}